package org.edu.modules.center.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;

@TableName("ve_addons_star")
@ApiModel(value="ve_addons_star对象", description="星级评价表")
public class VeAddonsStarVo
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("主键ID，自增长")
    private Integer id;
    @ApiModelProperty("模型：opencourse=课程,teach=教学，train=培训")
    private String model;
    @ApiModelProperty("被评价对象ID")
    private Integer objectid;
    @ApiModelProperty("被评价对象名称")
    private String objectname;
    @ApiModelProperty("是否开放评价，如果开放则不需要登录也可以评价，0=否，1=是")
    private Integer ispublic;
    @ApiModelProperty("平均分")
    private BigDecimal average;
    @ApiModelProperty("最后评价时间")
    private Integer lasttime;
    @ApiModelProperty("被评价次数")
    private Integer starcount;
    @ApiModelProperty("好评次数")
    private Integer goodcount;
    @ApiModelProperty("中评次数")
    private Integer regularcount;
    @ApiModelProperty("差评次数")
    private Integer poorcount;
    @ApiModelProperty("多租户id")
    private Integer placeId;
    @ApiModelProperty("教学活动id")
    private Integer tcid;

    public VeAddonsStarVo setObjectid(Integer objectid)
    {
        this.objectid = objectid;return this;
    }

    public VeAddonsStarVo setModel(String model)
    {
        this.model = model;return this;
    }

    public VeAddonsStarVo setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeAddonsStarVo(id=" + getId() + ", model=" + getModel() + ", objectid=" + getObjectid() + ", objectname=" + getObjectname() + ", ispublic=" + getIspublic() + ", average=" + getAverage() + ", lasttime=" + getLasttime() + ", starcount=" + getStarcount() + ", goodcount=" + getGoodcount() + ", regularcount=" + getRegularcount() + ", poorcount=" + getPoorcount() + ", placeId=" + getPlaceId() + ", tcid=" + getTcid() + ")";
    }

    public VeAddonsStarVo setTcid(Integer tcid)
    {
        this.tcid = tcid;return this;
    }

    public VeAddonsStarVo setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeAddonsStarVo setPoorcount(Integer poorcount)
    {
        this.poorcount = poorcount;return this;
    }

    public VeAddonsStarVo setRegularcount(Integer regularcount)
    {
        this.regularcount = regularcount;return this;
    }

    public VeAddonsStarVo setGoodcount(Integer goodcount)
    {
        this.goodcount = goodcount;return this;
    }

    public VeAddonsStarVo setStarcount(Integer starcount)
    {
        this.starcount = starcount;return this;
    }

    public VeAddonsStarVo setLasttime(Integer lasttime)
    {
        this.lasttime = lasttime;return this;
    }

    public VeAddonsStarVo setAverage(BigDecimal average)
    {
        this.average = average;return this;
    }

    public VeAddonsStarVo setIspublic(Integer ispublic)
    {
        this.ispublic = ispublic;return this;
    }

    public VeAddonsStarVo setObjectname(String objectname)
    {
        this.objectname = objectname;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $objectid = getObjectid();result = result * 59 + ($objectid == null ? 43 : $objectid.hashCode());Object $ispublic = getIspublic();result = result * 59 + ($ispublic == null ? 43 : $ispublic.hashCode());Object $lasttime = getLasttime();result = result * 59 + ($lasttime == null ? 43 : $lasttime.hashCode());Object $starcount = getStarcount();result = result * 59 + ($starcount == null ? 43 : $starcount.hashCode());Object $goodcount = getGoodcount();result = result * 59 + ($goodcount == null ? 43 : $goodcount.hashCode());Object $regularcount = getRegularcount();result = result * 59 + ($regularcount == null ? 43 : $regularcount.hashCode());Object $poorcount = getPoorcount();result = result * 59 + ($poorcount == null ? 43 : $poorcount.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $tcid = getTcid();result = result * 59 + ($tcid == null ? 43 : $tcid.hashCode());Object $model = getModel();result = result * 59 + ($model == null ? 43 : $model.hashCode());Object $objectname = getObjectname();result = result * 59 + ($objectname == null ? 43 : $objectname.hashCode());Object $average = getAverage();result = result * 59 + ($average == null ? 43 : $average.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeAddonsStarVo;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeAddonsStarVo)) {
            return false;
        }
        VeAddonsStarVo other = (VeAddonsStarVo)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$objectid = getObjectid();Object other$objectid = other.getObjectid();
        if (this$objectid == null ? other$objectid != null : !this$objectid.equals(other$objectid)) {
            return false;
        }
        Object this$ispublic = getIspublic();Object other$ispublic = other.getIspublic();
        if (this$ispublic == null ? other$ispublic != null : !this$ispublic.equals(other$ispublic)) {
            return false;
        }
        Object this$lasttime = getLasttime();Object other$lasttime = other.getLasttime();
        if (this$lasttime == null ? other$lasttime != null : !this$lasttime.equals(other$lasttime)) {
            return false;
        }
        Object this$starcount = getStarcount();Object other$starcount = other.getStarcount();
        if (this$starcount == null ? other$starcount != null : !this$starcount.equals(other$starcount)) {
            return false;
        }
        Object this$goodcount = getGoodcount();Object other$goodcount = other.getGoodcount();
        if (this$goodcount == null ? other$goodcount != null : !this$goodcount.equals(other$goodcount)) {
            return false;
        }
        Object this$regularcount = getRegularcount();Object other$regularcount = other.getRegularcount();
        if (this$regularcount == null ? other$regularcount != null : !this$regularcount.equals(other$regularcount)) {
            return false;
        }
        Object this$poorcount = getPoorcount();Object other$poorcount = other.getPoorcount();
        if (this$poorcount == null ? other$poorcount != null : !this$poorcount.equals(other$poorcount)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$tcid = getTcid();Object other$tcid = other.getTcid();
        if (this$tcid == null ? other$tcid != null : !this$tcid.equals(other$tcid)) {
            return false;
        }
        Object this$model = getModel();Object other$model = other.getModel();
        if (this$model == null ? other$model != null : !this$model.equals(other$model)) {
            return false;
        }
        Object this$objectname = getObjectname();Object other$objectname = other.getObjectname();
        if (this$objectname == null ? other$objectname != null : !this$objectname.equals(other$objectname)) {
            return false;
        }
        Object this$average = getAverage();Object other$average = other.getAverage();return this$average == null ? other$average == null : this$average.equals(other$average);
    }

    public Integer getId()
    {
        return this.id;
    }

    public String getModel()
    {
        return this.model;
    }

    public Integer getObjectid()
    {
        return this.objectid;
    }

    public String getObjectname()
    {
        return this.objectname;
    }

    public Integer getIspublic()
    {
        return this.ispublic;
    }

    public BigDecimal getAverage()
    {
        return this.average;
    }

    public Integer getLasttime()
    {
        return this.lasttime;
    }

    public Integer getStarcount()
    {
        return this.starcount;
    }

    public Integer getGoodcount()
    {
        return this.goodcount;
    }

    public Integer getRegularcount()
    {
        return this.regularcount;
    }

    public Integer getPoorcount()
    {
        return this.poorcount;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }

    public Integer getTcid()
    {
        return this.tcid;
    }
}
